package cn.gemiman.daoyi.module.cms.controller.admin.articledetailreadlogs.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 阅读记录新增/修改 Request VO")
@Data
public class ArticleDetailReadLogsSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8736")
    private Long id;

    @Schema(description = "文章编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "7265")
    @NotNull(message = "文章编号不能为空")
    private Long articleId;

    @Schema(description = "用户编号", example = "23077")
    private Long userId;

    @Schema(description = "开始时间")
    private LocalDateTime beginTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

}
